* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background: #f5f5f5;
    font-family: Arial, sans-serif;
}

/* 轮播图样式 */
.swiper-container {
    width: 100%;
    height: 375px;
    position: relative;
    overflow: hidden;
}
.swiper-wrapper {
    display: flex;
    transition: transform 0.3s;
}
.swiper-slide {
    flex: 0 0 100%;
    height: 375px;
}
.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.swiper-pagination {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}
.swiper-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    transition: all 0.3s;
}
.swiper-dot.active {
    background: #ff5000;
    width: 16px;
    border-radius: 4px;
}

/* 商品信息 */
.product-info {
    padding: 15px;
    background: white;
}
.product-title {
    font-size: 18px;
    color: #333;
    line-height: 1.4;
    margin-bottom: 8px;
}
.promotion-tag {
    display: inline-block;
    padding: 2px 6px;
    background: linear-gradient(90deg,#ff5000,#ff8000);
    color: white;
    border-radius: 2px;
    font-size: 12px;
    margin-right: 8px;
}
.promotion-text {
    font-size: 14px;
    color: #ff5000;
    margin: 8px 0;
}

/* 拼单列表 */
.group-list {
    margin: 15px;
    background: white;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}
.group-item:last-child {
    border-bottom: none;
}
.group-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}
.countdown {
    color: #ff5000;
    font-weight: bold;
}
.right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}
.user-info {
    font-size: 14px;
    color: #333;
}
.group-status {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}
.group-btn {
    background: #ff5000;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 15px;
    font-size: 14px;
    cursor: pointer;
}
.countdown {
    font-size: 14px;
    color: #ff5000;
}

/* 价格区域 */
.area {
    padding: 30px;
    border-top: 1px solid #eee;
}
.original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-right: 10px;
}
.discount-price {
    font-size: 24px;
    color: #ff5000;
    font-weight: bold;
}

/* 底部操作栏 */
.action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 10px 15px;
    display: flex;
    gap: 10px;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
}
.action-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
}
.buy-alone {
    background: #ffece5;
    color: #ff5000;
}
.group-buy {
    background: linear-gradient(90deg,#ff5000,#ff8000);
    color: white;
}

/* 支付弹窗样式 */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 400px;
  text-align: center;
  border-radius: 5px;
}

.qr-code {
  width: 200px;
  height: 200px;
  margin: 20px 0;
}

.button-group {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
}

.button-group button {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#cancelPayment {
  background-color: #f0f0f0;
  color: #333;
}

#completePayment {
  background-color: #4caf50;
  color: white;
}

/* 空状态提示 */
.group-item.empty-tips {
    text-align: center;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 8px;
    margin: 10px;
}

.tips-content {
    color: #666;
    font-size: 14px;
    letter-spacing: 1px;
}